package com.juxing.service.liveCenter.dao.impl;

import org.springframework.stereotype.Repository;

import com.juxing.service.liveCenter.bean.LiveStreamBean;
import com.juxing.service.liveCenter.dao.ILiveStreamDao;

@Repository
public class LiveStreamDaoImpl extends AbstractBaseDao implements ILiveStreamDao {

	@Override
	public long insert(LiveStreamBean bean) {
		int cnt = this.insert("LiveStream.insert", bean);
		if(cnt > 0) {
			return bean.getId();
		}
		return 0;
	}

	@Override
	public LiveStreamBean queryById(long id) {
		return this.selectOne("LiveStream.queryById", id);
	}

}
